<%@page import="co.gov.medellin.ssti.sub.model.dao.exception.DAOException"%>
<%@page import="co.gov.medellin.ssti.sub.model.vo.SedeVO"%>
<%@page import="java.util.Collection"%>
<%@page import="co.gov.medellin.ssti.sub.service.ConsultasService"%>
<%@ page contentType="text/html;charset=utf-8"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@page import="co.gov.medellin.ssti.sub.common.dao.Consultas"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<script src="<%=request.getContextPath()%>/js/dateValidation.js"
	type="text/javascript"></script>
<script type="text/javascript"
	src="<%=request.getContextPath() + "/js/jquery-1.8.0.js"%>"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()
					+ "/js/jquery-ui-1.10.3.custom.min.js"%>"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()
					+ "/js/jquery.ui.datepicker-es.js"%>"></script>
<link rel="stylesheet"
	href="<%=request.getContextPath()
					+ "/css/ui-lightness/jquery-ui-1.10.3.custom.css"%>" />
					
<script type="text/javascript">
$(document).ready(function() {
	var fechaActual = new Date();
    var dd = fechaActual.getDate();
    var mm = fechaActual.getMonth()+1; // indice 0
    var yyyy = fechaActual.getFullYear();
    if(dd<10){dd='0'+dd;} if(mm<10){mm='0'+mm;} var fechaActual = dd+'/'+mm+'/'+yyyy;
    
	$("#modificarBtn").click(function(){
		missinginfo = "";
	    if ($("#sede").val() == "") {
	    	alert("Debe ingresar el nombre para la sede.");
	        $("#sede").focus();
	        return false;
	    }
	    if ($("#dirEncasillada").val() == "") {
	        alert("Debe ingresar la direccion encasillada.");
	        $("#viaTipo").focus();
	        return false;
	    }

		var fDesdeValida = isDate($("#desde").val());
		var fHastaValida = isDate($("#hasta").val());
		if(!fDesdeValida){
			alert('Fecha desde vigencia no valida.');
			return false;
		}else if(!fHastaValida){
			alert('Fecha hasta vigencia no valida.');
			return false;
		}else{
			if( $.datepicker.parseDate("dd/mm/yy", $("#desde").val()) > $.datepicker.parseDate("dd/mm/yy", $("#hasta").val())){
				alert('La vigencia desde no puede ser mayor a la vigencia hasta.');
				return false;
			}
		}
		$("#mainForm").attr('target','_self');
		$("#mainForm").submit();					
	});
	
});
</script>

<!-- DatePickers -->
<script type="text/javascript">
$.datepicker.setDefaults({
	  showOn: "button",
	  buttonImageOnly: true,
	  buttonImage: "<%=request.getContextPath() + "/images/Calendar.png"%>",
	  buttonText : "Calendario"
	});
	$(function() {
		$("#desde").datepicker({
			changeMonth : true,
			changeYear : true
		});
	});
	$(function() {
		$("#hasta").datepicker({
			changeMonth : true,
			changeYear : true
		});
	});
</script>					
<title>Modificar Sede</title>
</head>
  
<script type="text/javascript">  
function agregar(object,origen){
	$("#dirdesc").val("");
	$("#dirdesc").prop('disabled', true);
    if($("#viaTipo").val() == 0){
    	alert('El tipo no es valido.');
    	return;
    }
    if(origen == 'tipo') tipo = object.value.toUpperCase();
    if(origen == 'vNro'){
      if(object.value.length == 1) object.value='00'+object.value;
      if(object.value.length == 2) object.value='0'+object.value;
      vNro = object.value.toUpperCase();
    }
    if(origen == 'vOr') vOr = object.value.toUpperCase();
    if(origen == 'vApn'){
      if(object.value.length == 1) object.value=' '+object.value;
      vApn = object.value.toUpperCase();
    }
    if(origen == 'cOr') cOr = object.value.toUpperCase();
    if(origen == 'cNro'){
      if(object.value.length == 1) object.value='00'+object.value;
      if(object.value.length == 2) object.value='0'+object.value;
      cNro = object.value.toUpperCase();
    }
    if(origen == 'cApn') {
      if(object.value.length == 1) object.value=' '+object.value;
      cApn = object.value.toUpperCase();
    }
    if(origen == 'placa'){
      if(object.value.length == 1) object.value='00'+object.value;
      if(object.value.length == 2) object.value='0'+object.value;
      placa = object.value.toUpperCase();
    }
    if(origen == 'interior'){
      if(object.value.length == 1) object.value='0000'+object.value;
      if(object.value.length == 2) object.value='000'+object.value;
      if(object.value.length == 3) object.value='00'+object.value;
      if(object.value.length == 4) object.value='0'+object.value;
      interior = object.value.toUpperCase();
    }
    if(origen == 'bloque'){
      if(object.value.length == 1) object.value='0'+object.value;
      bloque = object.value;
    }

    $("#dirEncasillada").val(tipo+" "+vOr+vNro+" "+vApn+"   "+cOr+cNro+" "+cApn+" "+placa+" "+bloque+interior);
}
</script>
  
  <body>
    <P></P>
    <P></P>
    <P></P>
    <P></P>
    <P align="center"></P>
    <DIV align="center"  class="titulosenblanco">
      <P>ADMINISTRACION DE SEDES</P>
      <P></P>
      <P></P>
    </DIV>
    <DIV align="center">
    <form name="frmModificarSede" id="mainForm" method="POST" action="<%=request.getContextPath()+"/Sedes/ModSede.do"%>">
      <div align="center">
      <table style="width: 80%;border: 0;padding: 3px;border-spacing: 3px;">
<%
String strcodsede = request.getParameter("Codigo");
String strnomsede = "";
String strdescripcion = "";
String strmunicipio = "";
String strtipo = "";
String strcaracter = "";
String strdirdesc = "";
String strdirenc = "";
String strcobama = "";
String strdesde = "";
String strhasta = "";
String strvigencia = "";

 

 ConsultasService consulta = new ConsultasService();
 Collection<SedeVO> rs = null;
 
 try{
   
   rs = consulta.getDetSede(strcodsede);
 }catch(Exception e){}

    if(rs != null){
       try{
         for(SedeVO vo : rs){ 
            strnomsede = vo.getNombre();
            strdescripcion = vo.getDescripcion();
            strtipo = vo.getTipo();
            strcaracter = vo.getCaracter();
            strmunicipio = vo.getCodeMunicipio().toString();
            strdirdesc = vo.getDireccion_descriptiva();
            strdirenc = vo.getDireccion_encasillada();
            strcobama = vo.getLocalizacion_cobama();
            strdesde = vo.getDesde();
            strhasta = vo.getHasta();
            strvigencia = vo.getVigencia();
            
            String dirEncasillada = strdirenc;
            // CR 0037 BB   0107  B 007 0001001
            // 0123456789012345678901234567891234
            if((Object)dirEncasillada != null)
            {
              int a = dirEncasillada.length();
              if(dirEncasillada.length() == 32)
              {
                String tipo = dirEncasillada.substring(0,2);
                String vOr = dirEncasillada.substring(3,4);
                String vNro = dirEncasillada.substring(4,7);
                String vAp = dirEncasillada.substring(8,10);
                String cOr = dirEncasillada.substring(13,14);
                String cNro = dirEncasillada.substring(14,17);
                String cAp = dirEncasillada.substring(18,20);
                String placa = dirEncasillada.substring(21,24);
                String bloque = dirEncasillada.substring(25,27);
                String interior = dirEncasillada.substring(27,32);
                request.setAttribute("tipo",tipo);
                request.setAttribute("vOr",vOr);
                request.setAttribute("vNro",vNro);
                request.setAttribute("vAp",vAp);
                request.setAttribute("cOr",cOr);
                request.setAttribute("cNro",cNro);
                request.setAttribute("cAp",cAp);
                request.setAttribute("placa",placa);
                request.setAttribute("bloque",bloque);
                request.setAttribute("interior",interior);
              }else
              {
                request.setAttribute("tipo","0");
                request.setAttribute("vOr","0");
                request.setAttribute("vNro","000");
                request.setAttribute("vAp","00");
                request.setAttribute("cOr","0");
                request.setAttribute("cNro","000");
                request.setAttribute("cAp","00");
                request.setAttribute("placa","000");
                request.setAttribute("bloque","00");
                request.setAttribute("interior","00000");
              }
            }
            
            request.setAttribute("dirEncasillada",strdirenc);
                
                }
           }catch(DAOException e){
              e.printStackTrace();
            }
        }else{%>
        <tr>
          <td colspan="2">
            <font>Ocurrio un error, al realizar la consulta</font> 
          </td>    
      </tr>
      <%    }%>
      
        <tr>
          <td width="11%">&nbsp;</td>
          <td width="28%" class="celdatabla">Nombre(*)</td>
          <td width="61%">
            <input type="text" class="form" value="<%=strnomsede%>" name="sede" id="sede" maxlength="40" size="40"/>
          </td>
        </tr>
        <tr>
          <td width="11%">&nbsp;</td>
          <td width="28%" class="celdatabla">Descripci&oacute;n</td>
          <td width="61%">
            <textarea name="descripcion" id="descripcion" class="form" cols="40" rows="7"><%=strdescripcion%></textarea>
          </td>
        </tr>       
        <tr>
          <td width="11%">&nbsp;</td>
          <td width="28%" class="celdatabla">Municipio(*)</td>
          <td width="61%">
            <logic:present name="municipios" scope="request">
                <html:select name="municipios" styleId="municipios" property="code" title="Municpios" styleClass="formLista" value="<%=strmunicipio%>" >
                  <html:options name="municipios" labelName="municipio" labelProperty="descVflex" property="code" collection="municipios"/>
                </html:select>
            </logic:present>
            
          </td>
        </tr>
        <tr>
          <td width="11%">&nbsp;</td>
          <td width="28%" class="celdatabla">Tipo</td>
          <td width="61%">
            <input type="text" name="tipo" id="tipo" value="<%=strtipo%>" class="form" maxlength="20" size="20"/>
          </td>
        </tr>
        <tr>
          <td width="11%">&nbsp;</td>
          <td width="28%" class="celdatabla">Caracter</td>
          <td width="61%">
            <select name="caracter" id="caracter" class="formLista">
              <% if(strcaracter.equals("Publica")){
              %>
                    <option value="Publica" selected="selected">Publica</option>
              <%}else{
              %>
                    <option value="Publica">Publica</option>
              <%} 
                if(strcaracter.equals("Privada")){
              %>
                    <option value="Privada" selected="selected">Privada</option>
              <%}else{
              %>
                    <option value="Privada">Privada</option>
              <%}
                if(strcaracter.equals("Otra")){  
              %>
                    <option value="Otra" selected="selected">Otra</option>
              <%}else{
              %>
                    <option value="Otra">Otra</option>
              <%}%>
            </select>
          </td>
        </tr>
        <tr>
          <td width="11%">&nbsp;</td>
          <td width="28%" class="celdatabla">Direcci&oacute;n Descriptiva(*)</td>
          <td width="61%">
            <input type="text" class="form" name="dirdesc" id="dirdesc" value="<%=strdirdesc%>" maxlength="30" size="30"/>
          </td>
        </tr>
        <tr>
          <td width="11%">&nbsp;</td>
          <td width="28%" class="celdatabla" colspan="2">Direcci&oacute;n &nbsp;Encasillada(*)</td>
        </tr>
        <tr>
             <td width="28%">&nbsp;</td>
             <td colspan="3" class="celdatabla">
             <div align="left">
               <table style="width: 48%;border: 1;padding: 2px;border-spacing: 3px;">
                 <tr>
                   <td colspan="4">
                     <DIV align="center">
                       <STRONG class="celdatabla">Datos de la via</STRONG> 
                     </DIV>
                   </td>
                   <td colspan="3">
                     <DIV align="center">
                       <STRONG class="celdatabla">Datos del cruce</STRONG>
                     </DIV>
                   </td>
                   <td colspan="3">
                     <DIV align="center">
                       <STRONG class="celdatabla">Datos adicionales</STRONG>
                     </DIV>
                   </td>
                 </tr>
                 <tr>
                   <td>
                     <DIV align="center">Tipo</DIV>
                   </td>
                   <td>
                     <DIV align="center">Or.</DIV>
                   </td>
                   <td>
                     <DIV align="center">Nro.</DIV>
                   </td>
                   <td>
                     <DIV align="center">Apn.</DIV>
                   </td>
                   <td>
                     <DIV align="center">Or.</DIV>
                   </td>
                   <td>
                     <DIV align="center">Nro.</DIV>
                   </td>
                   <td>
                     <DIV align="center">Apn.</DIV>
                   </td>
                   <td>
                     <DIV align="center">Placa</DIV>
                   </td>
                   <td>
                     <DIV align="center">Bloque</DIV>
                   </td>
                   <td>
                     <DIV align="center">Interior</DIV>
                   </td>

                 </tr>
                 <tr>
                   <td>
                    <% String tipo = (String)request.getAttribute("tipo"); 
                       if((Object)tipo == null) 
                       tipo = request.getParameter("viaTipo");
                       if((Object)tipo == null) tipo = "";
                    %>  
                     <select size="1" name="viaTipo" id="viaTipo" onchange="agregar(this,'tipo')"  onmouseover="this.T_WIDTH=180;this.T_TITLE='Tipo de via';return escape('Corresponde al tipo de via.');" class="form">
                     <% if((Object)tipo != null){
                            if(tipo.equals("0")){%>
                             <option value="0" selected="selected"></option>
                          <%}else{%>
                             <option value="0"></option>
                          <%}%>
                          <% if(tipo.equals("CR")){%>
                             <option value="CR" selected="selected">Carrera</option>
                          <%}else{%>
                             <option value="CR">Carrera</option>
                          <%}%>
                          <% if(tipo.equals("CL")){%>
                             <option value="CL" selected="selected">Calle</option>
                          <%}else{%>
                             <option value="CL">Calle</option>
                           <%}%>
                          <% if(tipo.equals("CQ")){%>  
                             <option value="CQ" selected="selected">Circular</option>
                          <%}else{%>
                             <option value="CQ">Circular</option>
                           <%}%>
                          <% if(tipo.equals("TR")){%>
                             <option value="TR" selected="selected">Transversal</option>
                          <%}else{%>
                             <option value="TR" >Transversal</option>
                           <%}%>
                          <% if(tipo.equals("DG")){%>
                             <option value="DG" selected="selected">Diagonal</option>
                          <%}else{%>
                             <option value="DG">Diagonal</option>
                           <%}%>
                          <% if(tipo.equals("AV")){%>
                             <option value="AV" selected="selected">Avenida</option>
                          <%}else{%>
                             <option value="AV">Avenida</option>
                          <%}
                          }else{%>
                            <option value="0"></option>
                            <option value="CR">Carrera</option>
                            <option value="CL">Calle</option>
                            <option value="CQ">Circular</option>
                            <option value="TR" >Transversal</option>
                            <option value="DG">Diagonal</option>
                            <option value="AV">Avenida</option>
                          <%}%>
                     </select>
                   </td>
                   <td>
                   <% String vOr = (String)request.getAttribute("vOr"); 
                      if((Object)vOr == null) vOr = request.getParameter("viaOrientacion");
                      if((Object)vOr == null) vOr = "";
                   %>  
                     <select size="1" class="form" onchange="agregar(this,'vOr')" name="viaOrientacion" id="viaOrientacion" onmouseover="this.T_WIDTH=180;this.T_TITLE='Orientacion de la via';return escape('Corresponde a la orientacion de la via.');">
                     <% if((Object)vOr != null){
                            if(vOr.equals("0")){%>
                       <option value="0" selected="selected"></option>
                    <%}else{%>
                       <option value="0"></option>
                    <%}%>
                    <% if(vOr.equals("E")){%>
                       <option value="E" selected="selected">Este</option>
                    <%}else{%>
                       <option value="E">Este</option>
                    <%}%>
                    <% if(vOr.equals("E")){%>
                       <option value="S" selected="selected">Sur</option>
                    <%}else{%>
                       <option value="S">Sur</option>
                     <%}
                    }else{%>  
                       <option value="0"></option>
                       <option value="E">Este</option>
                       <option value="S">Sur</option>
                    <%}%>
                     </select>
                   </td>
                   <td>
                   <% String vNro = (String)request.getAttribute("vNro"); 
                      if((Object)vNro == null) vNro = request.getParameter("vNro");
                      if((Object)vNro == null) vNro = "";
                   %>  
                     <input type="text" value="<%=vNro%>" onchange="agregar(this,'vNro')" name="vNro" id="vNro" class="form" maxlength="3" size="3" onmouseover="this.T_WIDTH=180;this.T_TITLE='Numero de la via';return escape('Corresponde al numero de la via.');"/>
                   </td>       
                   <td>
                   <% String vAp = (String)request.getAttribute("vAp"); 
                      if((Object)vAp == null) vAp = request.getParameter("viaApendice");
                      if((Object)vAp == null) vAp = "";
                   %>  
                     <input type="text" value="<%=vAp%>" class="form" size="2" maxlength="2"  name="viaApendice" id="viaApendice" onchange="agregar(this,'vApn')" onmouseover="this.T_WIDTH=180;this.T_TITLE='Apendice de la via';return escape('Corresponde al apendice; ejemplo: A, AA, B, BB etc.');"/>
                   </td>
                   <td>
                     <DIV align="center">
                     <% String cOr = (String)request.getAttribute("cOr"); 
                        if((Object) cOr == null) cOr = request.getParameter("cruceOrientacion");
                        if((Object) cOr == null) cOr = "";
                     %>  
                       <select size="1" class="form" name="cruceOrientacion" id="cruceOrientacion" onchange="agregar(this,'cOr')" onmouseover="this.T_WIDTH=180;this.T_TITLE='Orientacion del cruce';return escape('Corresponde a la orientacion del cruce.');">
                         <% if((Object)cOr != null){
                            if(cOr.equals("0")){%>
                       <option value="0" selected="selected"></option>
                    <%}else{%>
                       <option value="0"></option>
                    <%}%>
                    <% if(cOr.equals("E")){%>
                       <option value="E" selected="selected">Este</option>
                    <%}else{%>
                       <option value="E">Este</option>
                    <%}%>
                    <% if(cOr.equals("S")){%>
                       <option value="S" selected="selected">Sur</option>
                    <%}else{%>
                       <option value="S">Sur</option>
                     <%}
                    }else{%>  
                       <option value="0"></option>
                       <option value="E">Este</option>
                       <option value="S">Sur</option>
                    <%}%>
                       </select>
                     </DIV>
                   </td>
                   <td>
                     <DIV align="center">
                      <% String cNro = (String)request.getAttribute("cNro"); 
                      if((Object)cNro == null) cNro = request.getParameter("cruceNumero");
                      if((Object)cNro == null) cNro = "";
                      %>  
                       <input type="text" value="<%=cNro%>" class="form" size="3" maxlength="3" name="cruceNumero" id="cruceNumero" onchange="agregar(this,'cNro')" onmouseover="this.T_WIDTH=180;this.T_TITLE='Numero del cruce';return escape('Primer numero de la placa de la puerta.');"/>
                     </DIV>
                   </td>
                   <td>
                     <DIV align="center">
                     <% String cAp = (String)request.getAttribute("cAp"); 
                      if((Object)cAp == null) cAp = request.getParameter("cruceApendice");
                      if((Object)cAp == null) cAp = "";
                    %>  
                       <input type="text" value="<%=cAp%>" class="form" maxlength="2" size="2" name="cruceApendice" id="cruceApendice" onchange="agregar(this,'cApn')" onmouseover="this.T_WIDTH=180;this.T_TITLE='Apendice del cruce';return escape('Corresponde al apendice; ejemplo: A, AA, B, BB etc.');"/>
                     </DIV>
                   </td>
                   <td>
                     <DIV align="center">
                    <% String placa = (String)request.getAttribute("placa"); 
                      if((Object)placa == null) placa = request.getParameter("placa");
                      if((Object)placa == null) placa = "";
                    %>  
                       <input type="text" value="<%=placa%>" size="3" maxlength="3" name="placa" id="placa" onchange="agregar(this,'placa')" class="form" onmouseover="this.T_WIDTH=180;this.T_TITLE='Placa';return escape('Es el segundo numero de la puerta y que corresponde a la distancia que existe entre la esquina y la propiedad.');"/>
                     </DIV>
                   </td>
                   <td>
                     <DIV align="center">
                    <% String bloque = (String)request.getAttribute("bloque"); 
                      if((Object)bloque == null) bloque = request.getParameter("bloque");
                      if((Object)bloque == null) bloque = "";
                    %>
                      <input type="text" value="<%=bloque%>" class="form" maxlength="2" name="bloque" id="bloque" onchange="agregar(this,'bloque')" size="2" onmouseover="this.T_WIDTH=180;this.T_TITLE='Bloque';return escape('Aplica para edificios o unidades residenciales.');"/>
                     </DIV>
                   </td>
                   <td>
                     <DIV align="center">
                     <% String interior = (String)request.getAttribute("interior"); 
                      if((Object)interior == null) interior = request.getParameter("interior");
                      if((Object)interior == null) interior = "";
                     %>                       
                       <input type="text" value="<%=interior%>" class="form" size="5" name="interior" id="interior" onchange="agregar(this,'interior')" maxlength="5" onmouseover="this.T_WIDTH=180;this.T_TITLE='Interior';return escape('El numero de apartamento, si es el caso.');"/>
                     </DIV>
                   </td>

                 </tr>
                 <tr>
                    <td colspan="10">
                      <DIV align="center">
                        <STRONG>Direccion Generada
                        </STRONG>
                      </DIV>
                    </td>
                 </tr>
                 <tr>
                    <td colspan="10">
                      <% String dirEncasillada = (String)request.getAttribute("dirEncasillada"); 
                         if((Object) dirEncasillada == null) dirEncasillada = request.getParameter("direnc");
                         if((Object) dirEncasillada == null) dirEncasillada = "";
                      %>                        
                      <DIV align="center"><input name="dirEncasillada" id="dirEncasillada" size="40" class="form" readonly="readonly" value="<%=dirEncasillada%>" />
                      </DIV>
                    </td>
                 </tr>
               </table>
               </div>
             </td>
           </tr>
        <tr>
          <td width="11%">&nbsp;</td>
          <td width="28%" class="celdatabla">Localizaci&oacute;n COBAMA</td>
          <td width="61%">            
            <input type="text" value="<%=strcobama%>" class="form" name="cobama" id="cobama" maxlength="20" size="20"/>
          </td>
        </tr>
        <tr>
          <td width="11%">&nbsp;</td>
          <td width="28%" class="celdatabla">Desde Vigencia</td>
          <td width="61%">
            <% if(strdesde.equals("nulo")){
                  strdesde="";
                }%>            
          	<input type="text" Class="form" value="<%= strdesde %>"  name="desde" id="desde"/>
          </td>
        </tr>
        <tr>
          <td width="11%">&nbsp;</td>
          <td width="28%" class="celdatabla">Hasta Vigencia</td>
          <td width="61%">
            <% if(strhasta.equals("nulo")){
                  strhasta="";
                }%>            
            <input type="text" Class="form" value="<%= strhasta %>" name="hasta" id="hasta" />
          </td>
        </tr>
        <tr>
          <td width="11%">&nbsp;</td>
          <td width="28%" class="celdatabla">Vigencia</td>
          <td width="61%">
          	<select name="vigencia" id="vigencia">
                 <%if(strvigencia.equals("A")){%>
                  <option class="form" value="A" selected="selected">Activo</option>
                  <option value="I">Inactivo</option>
                 <%}else{%>
                  <option class="form" value="I" selected="selected">Inactivo</option>
                  <option value="A">Activo</option>
                 <%}%>
            </select>
          </td>
        </tr>
        <tr>
          <td width="11%"></td>
          <td width="28%"></td>
          <td width="61%"></td>
        </tr>
        <tr>
          <td width="11%"></td>
          <td width="28%">&nbsp;
          </td>
          <td width="61%">           	
            <input type="hidden" name="codsede" id="codsede" value="<%=strcodsede%>"/>
            <input type="submit" value="Modificar" name="modificarBtn" id="modificarBtn" onclick="checkFields()"/>
          </td>
        </tr>
      </table>
      </div>
      <a href="<%=request.getContextPath()+"/Sedes/ConsultarSedes.do"%>">
        <img src="<%=request.getContextPath() + "/images/BACK1-1.gif"%>" border="0"/>
      </a>
      
<script type="text/javascript">                    
	var tipo 		= $("#viaTipo").val();
	var vNro 		= $("#vNro").val();
	var vOr 		= $("#viaOrientacion").val();
	var vApn 		= $("#viaApendice").val();
	var cOr 		= $("#cruceOrientacion").val();
	var cNro 		= $("#cruceNumero").val();
	var cApn 		= $("#cruceApendice").val();
	var placa 		= $("#placa").val();
	var interior 	= $("#interior").val();
	var bloque 		= $("#bloque").val();
</script>  
    
</form>
    </DIV>
  
  </body>
</html>
